package com.jeesite.modules.dataScreen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.jeesite.modules.dataScreen.constants.SsmContactTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 通信录(SsmContact)表实体类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "dp_jtdn2.jtyx_ssm_contact")
public class SsmContact extends Model<SsmContact> {
    //主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //单位
    private String unitName;
    //部门
    private String deptName;
    //职务
    private String jobName;
    //名称
    private String name;
    //电话
    private String tel;
    /**
     * @see SsmContactTypeEnum
     * 分类
     */
    private SsmContactTypeEnum type;
    //作用域(区县,市级)
    private String scope;

    //更新时间
    private Date updateAt;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

